import { get, post } from "@/utils/service";

export function getRoomList() {
  return get("/room/getRoomList", {});
}

export function getRoomInfo() {
  let room_id = Number(localStorage.getItem("room_id"));
  if (!room_id) {
    room_id = 10002;
  }
  return post("/room/getRoomInfo", {
    room_id: room_id,
  });
}
